<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
</head>
<body>
	<p>本例调用的函数会执行一个计算，然后返回结果：</p>
	<p id="demo"></p>
	<script type="text/javascript">
		function myfunction(a,b){
			return a*b
		}
		document.getElementById('demo').innerHTML=myfunction(4,3);
	</script>
</body>
</html>